import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity('sys_user_role')
export class SysUserRole {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id' })
  id: number;

  @Column({ type: 'int', name: 'user_id', comment: '用户id' })
  userId: number;

  @Column({ type: 'int', name: 'role_id', comment: '角色id' })
  roleId: number;
}
